#!/bin/sh
percent_calc(){
	if [ -s "$1" ];then 
		TOTFILES=$(cat $1|wc -l) 
		PERCENT=$((100 / TOTFILES)) 
		[ $PERCENT = "0" ] && PERCENT=1 
		return $PERCENT
	fi
	return 0
}
exquisite_launch(){
	if [ -z "$(pidof exquisite)" ]; then
		/usr/local/bin/exquisite -fb -fs -t /usr/local/share/exquisite/data/themes/core17.edj -cleanvt -verbose &
		/usr/local/bin/exquisite-write -wait 30
		/usr/local/bin/exquisite-write "TITLE Welcome to Core17"
	fi
}

